package org.doubango.FrCall.Screens;

import org.doubango.FrCall.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.View.OnClickListener;
import android.widget.Button;

public class RegisterSelect extends Activity {
	private Button numberRegisterButton;
	private Button emailRegisterButton;
	private Button registerSelectBackToLoginPage;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.register_select);
		numberRegisterButton = (Button) findViewById(R.id.number_register_button);
		emailRegisterButton = (Button) findViewById(R.id.email_register_button);
		registerSelectBackToLoginPage = (Button) findViewById(R.id.reg_select_back_to_loginpage);
		numberRegisterButton.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(RegisterSelect.this,NumberRegister.class);
				startActivity(intent);
				finish();
			}
		});
		
		emailRegisterButton.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(RegisterSelect.this,EmailRegister.class);
				startActivity(intent);
				finish();
			}
		});
		
		registerSelectBackToLoginPage.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(RegisterSelect.this,ScreenLogin.class);
				startActivity(intent);
				finish();
			}
		});
	}
	
}
